package com.management.po;

import org.springframework.format.annotation.DateTimeFormat;



import java.util.Date;

/**
 * @author zwh
 * @date 2021/10/28
 * 采购表
 */
public class PurchaseForm {

    /**
     * 采购订单编号
     */
    private String purchaseFormId;
    /**
     * 表状态
     */
    private int formStatsId;

    /**
     * 公司编号
     */
    private int companyId;

    /**
     * 人员编号
     */
    private int userId;

    /**
     * 采购物品编号
     */
    private int materialsId;

    /**
     * 采购数量
     */
    private int purchaseNumber;

    /**
     * 金额
     */
    private double purchaseMoney;

    /**
     * 时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date purchaseDate;

    /**
     *流程记录
     */
    private String purchaseRecord;

    /**
     * 备注
     */
    private String purchaseNote;

    @Override
    public String toString() {
        return "PurchaseForm{" +
                "purchaseFormId='" + purchaseFormId + '\'' +
                ", formStatsId=" + formStatsId +
                ", companyId=" + companyId +
                ", userId=" + userId +
                ", materialsId=" + materialsId +
                ", purchaseNumber=" + purchaseNumber +
                ", purchaseMoney=" + purchaseMoney +
                ", purchaseDate=" + purchaseDate +
                ", purchaseRecord='" + purchaseRecord + '\'' +
                ", purchaseNote='" + purchaseNote + '\'' +
                '}';
    }

    public PurchaseForm() {
    }

    public PurchaseForm(String purchaseFormId, int formStatsId, int companyId, int userId, int materialsId, int purchaseNumber, double purchaseMoney, Date purchaseDate, String purchaseRecord, String purchaseNote) {
        this.purchaseFormId = purchaseFormId;
        this.formStatsId = formStatsId;
        this.companyId = companyId;
        this.userId = userId;
        this.materialsId = materialsId;
        this.purchaseNumber = purchaseNumber;
        this.purchaseMoney = purchaseMoney;
        this.purchaseDate = purchaseDate;
        this.purchaseRecord = purchaseRecord;
        this.purchaseNote = purchaseNote;
    }

    public int getMaterialsId() {
        return materialsId;
    }

    public void setMaterialsId(int materialsId) {
        this.materialsId = materialsId;
    }

    public String getPurchaseFormId() {
        return purchaseFormId;
    }

    public void setPurchaseFormId(String purchaseFormId) {
        this.purchaseFormId = purchaseFormId;
    }

    public int getFormStatsId() {
        return formStatsId;
    }

    public void setFormStatsId(int formStatsId) {
        this.formStatsId = formStatsId;
    }

    public int getCompanyId() {
        return companyId;
    }

    public void setCompanyId(int companyId) {
        this.companyId = companyId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getPurchaseNumber() {
        return purchaseNumber;
    }

    public void setPurchaseNumber(int purchaseNumber) {
        this.purchaseNumber = purchaseNumber;
    }

    public double getPurchaseMoney() {
        return purchaseMoney;
    }

    public void setPurchaseMoney(double purchaseMoney) {
        this.purchaseMoney = purchaseMoney;
    }

    public Date getPurchaseDate() {
        return purchaseDate;
    }

    public void setPurchaseDate(Date purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    public String getPurchaseRecord() {
        return purchaseRecord;
    }

    public void setPurchaseRecord(String purchaseRecord) {
        this.purchaseRecord = purchaseRecord;
    }

    public String getPurchaseNote() {
        return purchaseNote;
    }

    public void setPurchaseNote(String purchaseNote) {
        this.purchaseNote = purchaseNote;
    }
}
